<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"                
                xmlns:p="http://primefaces.prime.com.tr/ui"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:r="http://java.sun.com/jsf/composite/rumus"
                template="../../modelo/padrao.xhtml">
                
    <ui:define name="titulo">#{i18n['cliente.titulo.listar']}</ui:define>
	<ui:define name="conteudo">
		
    	<h:form id="formListar" prependId="false">
    		<r:barraListar bean="#{listarCliente}"  
    		               disativarPesquisar="#{!p:ifGranted('CADASTRO_CLIENTE_PESQUISAR')}" 
    		               disativarIncluir="#{!p:ifGranted('CADASTRO_CLIENTE_INCLUIR')}">
				<h:panelGrid>
			    	<h:outputLabel>#{i18n['cliente.nome']}</h:outputLabel>
			    	<p:inputText value="#{listarCliente.objeto.nome}" size="50"/>    		               	
    		    </h:panelGrid>           
    		</r:barraListar>
    		<br/>	
			<r:tabela id="grade" bean="#{listarCliente}" outcome="#{'/cadastro/cliente/'}" >			    	
	    		<p:column>
                	<f:facet name="header">#{i18n['cliente.nome']}</f:facet>
                    <h:outputText value="#{objeto.nome}" />
                </p:column>
	    	</r:tabela>
    	</h:form>
    </ui:define>

</ui:composition>
